package org.zoffy.model.vo;

import lombok.Data;
import org.zoffy.model.entity.User;

@Data
public class UserVO {
    private long id;
    private String account;
    private String role;

    public static UserVO obj2Vo(User user) {
        UserVO userVO = new UserVO();
        userVO.setAccount(user.getAccount());
        userVO.setId(user.getId());
        return userVO;
    }
}
